﻿using Models.Entity;

namespace WebServer.Config;

public class ResultHelper
{
    public static Result Success(object data)
    {
        return new Result()
        {
            IsSuccess = true,
            Data = data,
            Msg = string.Empty,
        };
        
    }

    public static Result Error(string msg)
    {
        return new Result()
        {
            IsSuccess = false,
            Data = null,
            Msg = msg
        };
    }
}